package com.admin.client.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 人机编队(CoreRobotTeams)表实体类
 *
 * @author cxy
 * @since 2025-01-09 10:28:28
 */
@ApiModel("人机编队")
@ColumnWidth(25)//列宽
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class CoreRobotTeams extends Model<CoreRobotTeams> {// swagger2,mybatis-plus
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 生成实体字段
    @TableId(type = IdType.INPUT)
    @ApiModelProperty("人机队伍id")
    @ExcelProperty({"人机队伍id","id"})
    private Long id;
    
    @ApiModelProperty("队伍名称")
    @ExcelProperty({"队伍名称","name"})
    private String name;
    
    @ApiModelProperty("1号位人机英雄id")
    @ExcelProperty({"1号位人机英雄id","robotId1"})
    private Long robotId1;
    
    @ApiModelProperty("1号位人机英雄兵力")
    @ExcelProperty({"1号位人机英雄兵力","armyCount1"})
    private Long armyCount1;
    
    @ApiModelProperty("2号位人机英雄id")
    @ExcelProperty({"2号位人机英雄id","robotId2"})
    private Long robotId2;
    
    @ApiModelProperty("2号位人机英雄兵力")
    @ExcelProperty({"2号位人机英雄兵力","armyCount2"})
    private Long armyCount2;
    
    @ApiModelProperty("3号位人机英雄id")
    @ExcelProperty({"3号位人机英雄id","robotId3"})
    private Long robotId3;
    
    @ApiModelProperty("3号位人机英雄兵力")
    @ExcelProperty({"3号位人机英雄兵力","armyCount3"})
    private Long armyCount3;
    
    @ApiModelProperty("难度")
    @ExcelProperty({"难度","difficulty"})
    private Integer difficulty;
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 序列化版本号
    @TableField(exist = false)
    private static final long serialVersionUID = -63024198357472634L;
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 获取主键值
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    ///////////////////////////////////////////////////////////////////////////////////////////////////////  基础数据初始化
    public CoreRobotTeams init() {
        return this;
    }
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 领域业务
}

